Timm Bäder [Thu, 7 Jan 2016 17:25:22 +0000 (18:25 +0100)]
GtkModelButton: Remove always-zero variable
Eric Williams [Wed, 6 Jan 2016 20:27:53 +0000 (15:27 -0500)]
Clarified the function docs for gtk_css_provider_load_from_data().
https://bugzilla.gnome.org/show_bug.cgi?id=760238
Matthias Clasen [Wed, 6 Jan 2016 19:56:06 +0000 (14:56 -0500)]
wayland: Only do cursor name fallback for standard names
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.
https://bugzilla.gnome.org/show_bug.cgi?id=760141
Matthias Clasen [Wed, 6 Jan 2016 19:54:33 +0000 (14:54 -0500)]
x11: Only do cursor name fallback for standard names
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.
https://bugzilla.gnome.org/show_bug.cgi?id=760141
Matthias Clasen [Wed, 6 Jan 2016 19:53:45 +0000 (14:53 -0500)]
Add context-menu to the list of standard cursor names
Adwaita doesn't have this one, but we are falling to the
default cursor anyway.
Matthias Clasen [Wed, 6 Jan 2016 04:24:51 +0000 (23:24 -0500)]
Add a test for ltr vs rtl boxes.
This tests that horizontal boxes flip their child nodes
according to text direction to maintain the left-to-right
ordering of child nodes for both text directions.
Matthias Clasen [Wed, 6 Jan 2016 04:22:28 +0000 (23:22 -0500)]
CSS node tests: Add a way to test rtl vs ltr
CSS nodes have a linear sibling relationship; this is supposed
to correspond to left-to-right placement in horizontal arrangements.
This commit explicitly sets the text direction to rtl if the
filename ends in .rtl.ui, so we can test differences in node
tree layout between text directions.
Timm Bäder [Wed, 6 Jan 2016 09:58:08 +0000 (10:58 +0100)]
GtkListBox: Optimize _get_row_at_y a bit
Use g_sequence_lookup for a binary search over the rows.
Timm Bäder [Wed, 6 Jan 2016 09:46:29 +0000 (10:46 +0100)]
GtkListBox: get_row_at_y can return NULL
Rico Tzschichholz [Wed, 6 Jan 2016 14:17:52 +0000 (15:17 +0100)]
HighContrast: Fix make dist
Felipe Borges [Wed, 6 Jan 2016 13:47:48 +0000 (14:47 +0100)]
printing: always propagate Collate value
https://bugzilla.gnome.org/show_bug.cgi?id=728344
Chun-wei Fan [Wed, 6 Jan 2016 13:12:19 +0000 (21:12 +0800)]
Visual Studio builds: Use _USE_MATH_DEFINES
... to fix the build as some C99 math constant macros are being used, such
as M_SQRT2.
Wonchul Lee [Tue, 5 Jan 2016 07:48:48 +0000 (16:48 +0900)]
docs: cleanup duplication of words
https://bugzilla.gnome.org/show_bug.cgi?id=760148
Matthias Clasen [Wed, 6 Jan 2016 03:33:20 +0000 (22:33 -0500)]
HighContrast: Improve search bar appearance
Follow the generally white background we use everywhere else.
This is not perfect, we get double borders when the search bar
is shown, as can be seen in gtk3-widget-factory.
Matthias Clasen [Wed, 6 Jan 2016 03:22:47 +0000 (22:22 -0500)]
HighContrast: Fix up action bar styling
Since HighContrast is not using different background colors
as much as Adwaita, we need to add borders to prevent things
from running into each other.
Matthias Clasen [Wed, 6 Jan 2016 01:39:16 +0000 (20:39 -0500)]
HighContrast: Drop deprecated style properties
Matthias Clasen [Wed, 6 Jan 2016 00:25:06 +0000 (19:25 -0500)]
HighContrast: Add a dark variant
This is just a quick experiment, and so I have another theme with
a dark variant to play with.
Matthias Clasen [Tue, 5 Jan 2016 21:54:40 +0000 (16:54 -0500)]
HighContrast: Add a missing unit
Matthias Clasen [Tue, 5 Jan 2016 21:53:03 +0000 (16:53 -0500)]
HighContrast: Fix sidebar borders
Matthias Clasen [Tue, 5 Jan 2016 19:37:22 +0000 (14:37 -0500)]
HighContrast: Fix checkboxes in selected context
Set a proper color so checks and radios don't disappear on the
black selection background.
Matthias Clasen [Tue, 5 Jan 2016 19:19:58 +0000 (14:19 -0500)]
HighConstast: Some fixes for treeview headers
Matthias Clasen [Tue, 5 Jan 2016 15:55:34 +0000 (10:55 -0500)]
HighContrast: Keep spinbuttons from resizing on hover
Matthias Clasen [Tue, 5 Jan 2016 12:48:54 +0000 (07:48 -0500)]
HighContrast: Fix checks and radios
Matthias Clasen [Tue, 5 Jan 2016 12:40:39 +0000 (07:40 -0500)]
HighContrast: Some menu fixes
Matthias Clasen [Tue, 5 Jan 2016 12:17:16 +0000 (07:17 -0500)]
HighContrast: paned fixes
Mostly copied from Adwaita.
Cosimo Cecchi [Tue, 5 Jan 2016 18:01:33 +0000 (10:01 -0800)]
HighContrast: more combobox fixes
Taken from Adwaita.
Paolo Borelli [Tue, 5 Jan 2016 17:40:25 +0000 (18:40 +0100)]
docs: try to clarify widget_get_state_flags vs context_get_state
Matthias Clasen [Tue, 5 Jan 2016 04:52:28 +0000 (23:52 -0500)]
HighContrast: Some combobox fixes
Mostly copied from Adwaita.
Matthias Clasen [Tue, 5 Jan 2016 04:45:13 +0000 (23:45 -0500)]
HighContrast: Fix frame styling
Matthias Clasen [Tue, 5 Jan 2016 04:28:32 +0000 (23:28 -0500)]
HighContrast: fix up color chooser theming
Mostly copied from Adwaita.
Matthias Clasen [Tue, 5 Jan 2016 03:08:53 +0000 (22:08 -0500)]
HighContrast: Fix up stackswitcher
Copy Some of the more recent additions from Adwaita.
Matthias Clasen [Tue, 5 Jan 2016 02:35:55 +0000 (21:35 -0500)]
HighContrast: No blue spinners
Spinners are drawing backgrounds now, so setting a blue
background color is pretty distracting.
Matthias Clasen [Tue, 5 Jan 2016 02:22:11 +0000 (21:22 -0500)]
Make sure icons update on theme change
Gadgets don't connect to style-changed for widget nodes, and
GtkImage uses its widget node for the icon helper. The visible
effect of this is that symbolic icons don't change color when
switching to the dark variant of Adwaita.
Fix this by manually invalidating the icon helper.
Matthias Clasen [Mon, 4 Jan 2016 21:58:10 +0000 (16:58 -0500)]
widget-factory: Make the notebook action truly circular
The sidebar-button class doesn't work out so well for this
since it has horizontal padding.
Cosimo Cecchi [Tue, 5 Jan 2016 02:14:33 +0000 (18:14 -0800)]
levelbar: loop over all block gadgets to determine min size
Instead of just picking the first. This is because the theme might set a
border on only one of them, like the HighContrast theme does.
Cosimo Cecchi [Tue, 5 Jan 2016 01:55:26 +0000 (17:55 -0800)]
levelbar: fix parameter confusion
We're always interested in the minimum size.
Cosimo Cecchi [Tue, 5 Jan 2016 01:50:24 +0000 (17:50 -0800)]
HighContrast: update to use -gtk-outline-radius
Cosimo Cecchi [Tue, 5 Jan 2016 01:49:41 +0000 (17:49 -0800)]
HighContrast: update to use :hover
Cosimo Cecchi [Tue, 5 Jan 2016 01:48:59 +0000 (17:48 -0800)]
HighContrast: update to use :indeterminate
Cosimo Cecchi [Tue, 5 Jan 2016 01:46:43 +0000 (17:46 -0800)]
HighContrast: update to use :disabled
Matthias Clasen [Mon, 4 Jan 2016 20:34:50 +0000 (15:34 -0500)]
tests: Rework the way foreigndrawing works
Instead of the weird PathElt struct, generate a quick-n-dirty parser
that parses CSS selectors into GtkWidgetPath elements.
Based on a patch by Benjamin Otte.
Matthias Clasen [Mon, 4 Jan 2016 18:54:20 +0000 (13:54 -0500)]
Document radial gradient syntax
Matthias Clasen [Mon, 4 Jan 2016 02:49:13 +0000 (21:49 -0500)]
Add a CSS style test for gradients
This mainly just tests that gradients are properly
reproduced by gtk_style_context_to_string.
Matthias Clasen [Sun, 27 Dec 2015 07:04:20 +0000 (02:04 -0500)]
Add some tests for radial gradient parsing
These are the examples from the CSS spec.
Matthias Clasen [Sun, 27 Dec 2015 07:03:35 +0000 (02:03 -0500)]
Implement CSS radial gradients
Implement parsing and drawing of radial gradients according to
http://www.w3.org/TR/css3-images/#radial-gradients.
Transitions are not implemented yet.
Christoph Reiter [Sat, 31 Oct 2015 12:38:24 +0000 (13:38 +0100)]
Mention GtkIconSize in all docs where the argument/return is annotated as taking an int instead of GtkIconSize
In https://bugzilla.gnome.org/show_bug.cgi?id=601425 the annotations
were changed to int as they not only take the predefined enum values
but also user defined values registered through gtk_icon_size_register()
As a result the typelib doesn't contain any information about
GtkIconSize for those arguments and the Python docstring only
shows the corresponding Python type "int".
This changes the argument docs to mention the type explicitly
so the Python doc generator can add a link to Gtk.IconSize
which contains the most useful predefined values.
https://bugzilla.gnome.org/show_bug.cgi?id=757411
Marek Černocký [Mon, 4 Jan 2016 10:52:10 +0000 (11:52 +0100)]
Updated Czech translation
Marek Černocký [Mon, 4 Jan 2016 10:51:20 +0000 (11:51 +0100)]
Updated Czech translation
Rico Tzschichholz [Mon, 4 Jan 2016 09:16:45 +0000 (10:16 +0100)]
docs/gtk: Include css.xml
Rico Tzschichholz [Mon, 4 Jan 2016 08:53:24 +0000 (09:53 +0100)]
docs/gtk: Sort content_files/expand_content_files alphabetically
Piotr Drąg [Mon, 4 Jan 2016 07:27:02 +0000 (08:27 +0100)]
Updated POTFILES.skip
Chun-wei Fan [Mon, 4 Jan 2016 07:09:14 +0000 (15:09 +0800)]
config.h.win32.in: Update for _lock_file()
The Visual Studio versions that we support supports locking functions in
their CRT, so support that to optimize things a bit. Also update the
config.h.win32.in so that its entries are more in line with the ones in
the autootols builds, and make sure that we use UNIX line endings.
Cosimo Cecchi [Mon, 4 Jan 2016 01:20:06 +0000 (17:20 -0800)]
cssstyle: fix a compiler warning
Matthias Clasen [Sun, 3 Jan 2016 22:23:59 +0000 (17:23 -0500)]
Update expected output
The previous commit changed the format of the output
generated by the CSS style tests.
Matthias Clasen [Sun, 3 Jan 2016 22:05:16 +0000 (17:05 -0500)]
Improve formatting of CSS style prints
Add a newline after CSS properties, so things don't run into
each other.
Matthias Clasen [Sun, 3 Jan 2016 21:14:43 +0000 (16:14 -0500)]
Skip GdkX11DeviceManagerCore in default value tests
We already skip the XI2 implementation, and the core
one needs the same treatment.
Matthias Clasen [Sun, 3 Jan 2016 20:41:09 +0000 (15:41 -0500)]
Update expected output for CSS style tests
The format for CSS values changed slightly in one of the
previous commits.
Matthias Clasen [Sun, 3 Jan 2016 20:37:40 +0000 (15:37 -0500)]
Use a custom theme for CSS style tests
Use a custom, empty theme and stop importing reset-to-defaults.css.
This avoids overwriting initial values, so our initial value
filtering works better.
Matthias Clasen [Sun, 3 Jan 2016 20:34:08 +0000 (15:34 -0500)]
Redo CSS style printing
Drop the custom style printing implementation in gtkcssnode.c and
instead reuse the existing gtk_css_style_print function, extending
it a bit to suit our needs.
Instead of computing values, just recognize initial values by
having no CSS section. Also do away with the show-initial flag, and
just always filter out initial values. The flag can come back when
it is needed.
Matthias Clasen [Sun, 3 Jan 2016 19:04:52 +0000 (14:04 -0500)]
Update expected output for node and style tests
The previous commit changed the format of the output.
Matthias Clasen [Sun, 3 Jan 2016 19:02:00 +0000 (14:02 -0500)]
Move node printing to GtkCssNodeDeclaration
The node declaration has all the information we are printing
here (except for visibility). At the same time, redo the format
to print the information in selector format, and indicate
(in)visibility by enclosing the selector in square brackets.
Cosimo Cecchi [Sun, 3 Jan 2016 19:33:19 +0000 (11:33 -0800)]
tests: fix Makefile.am syntax
It requires a tab character, or the build will fail.
Cosimo Cecchi [Sun, 3 Jan 2016 19:25:45 +0000 (11:25 -0800)]
cssnode: fix a compiler warning
Matthias Clasen [Sun, 3 Jan 2016 17:05:57 +0000 (12:05 -0500)]
Fix the build
Matthias Clasen [Sun, 3 Jan 2016 16:59:15 +0000 (11:59 -0500)]
Forgotten file
I forgot to add this file to source control when the new tests
were initially added.
Felix Riemann [Sun, 3 Jan 2016 14:32:38 +0000 (15:32 +0100)]
shortcuts: Separate gestures in search results
Gestures where shown separately from other shortcuts in the search
results before. This restores that behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=760097
Felix Riemann [Sun, 3 Jan 2016 14:22:06 +0000 (15:22 +0100)]
shortcuts: Show icons and subtitles for gestures in search results
https://bugzilla.gnome.org/show_bug.cgi?id=760097
Matthias Clasen [Sun, 3 Jan 2016 15:56:11 +0000 (10:56 -0500)]
Update expected results of a11y tests
All of these now have a harmless extra "panel".
Matthias Clasen [Sun, 3 Jan 2016 15:42:13 +0000 (10:42 -0500)]
lockbutton: Fix up the template
I forgot to clean this up when switching to a stack.
Matthias Clasen [Sun, 3 Jan 2016 15:34:40 +0000 (10:34 -0500)]
Skip GdkX11DeviceManagerCore in notify tests
We already skip the XI2 implementation, and the core
one needs to the same treatment.
Matthias Clasen [Sun, 3 Jan 2016 15:33:54 +0000 (10:33 -0500)]
assistant: Drop unnecessary frame
We can just style the sidebar box itself, no need for an
extra frame widget.
Matthias Clasen [Sun, 3 Jan 2016 14:55:30 +0000 (09:55 -0500)]
lockbutton: Use a stack
The previous way of manually juggling the visibility of the
labels doesn't work anymore, now that gadgets of invisible
widgets don't allocate space anymore.
Matthias Clasen [Tue, 29 Dec 2015 04:26:50 +0000 (23:26 -0500)]
Add a css style test for currentColor
Matthias Clasen [Tue, 29 Dec 2015 04:20:57 +0000 (23:20 -0500)]
Add a css style test for inherit and initial
Matthias Clasen [Mon, 28 Dec 2015 18:59:10 +0000 (13:59 -0500)]
Add a css style test for :first/last/only-child
Matthias Clasen [Mon, 28 Dec 2015 17:39:54 +0000 (12:39 -0500)]
Add a css style test for font inheritance
Matthias Clasen [Tue, 29 Dec 2015 12:44:53 +0000 (07:44 -0500)]
Add a test framework for CSS styles
This uses the same function for dumping CSS nodes and styles
as the CSS node test. It can be used to test aspects of inheritance
and matching, as well as initial values.
No actual tests yet.
Matthias Clasen [Mon, 28 Dec 2015 16:00:32 +0000 (11:00 -0500)]
Add CSS node tests for levelbars
Matthias Clasen [Mon, 28 Dec 2015 15:52:20 +0000 (10:52 -0500)]
Add CSS node test for progressbars
Matthias Clasen [Mon, 28 Dec 2015 15:35:58 +0000 (10:35 -0500)]
Add a CSS node test for buttons
Matthias Clasen [Mon, 28 Dec 2015 07:00:58 +0000 (02:00 -0500)]
Add a CSS node test for entries
Matthias Clasen [Mon, 28 Dec 2015 07:03:29 +0000 (02:03 -0500)]
Add a CSS node test for notebooks
Matthias Clasen [Mon, 28 Dec 2015 07:02:57 +0000 (02:02 -0500)]
Add a test framework for CSS nodes
No actual tests yet.
Matthias Clasen [Mon, 28 Dec 2015 06:09:54 +0000 (01:09 -0500)]
Add a function to dump CSS nodes and styles
Add a gtk_style_context_to_string function that can serialize
a CSS node or tree of nodes, optionally including CSS properties
as well.
This will be useful in writing tests.
Cosimo Cecchi [Sun, 3 Jan 2016 09:02:12 +0000 (01:02 -0800)]
infobar: remove unneeded gadget
It turns out we don't really need to use a separate gadget for the
infobar, if all we do is chaining up to the parent GtkBox which already
uses a gadget.
Just remove all the boilerplate.
Cosimo Cecchi [Sun, 3 Jan 2016 08:54:16 +0000 (00:54 -0800)]
window: remove unused variables
Cosimo Cecchi [Sun, 3 Jan 2016 01:54:06 +0000 (17:54 -0800)]
levelbar: consolidate code into single function
Cosimo Cecchi [Sun, 3 Jan 2016 02:03:50 +0000 (18:03 -0800)]
levelbar: port to use gadgets
We now use one gadget for the trough, and one for each block.
Cosimo Cecchi [Sun, 3 Jan 2016 02:03:15 +0000 (18:03 -0800)]
levelbar: split out a function
Cosimo Cecchi [Sat, 2 Jan 2016 23:28:12 +0000 (15:28 -0800)]
infobar: port to use a gadget
Cosimo Cecchi [Sat, 2 Jan 2016 23:09:21 +0000 (15:09 -0800)]
infobar: trivial code cleanups
Cosimo Cecchi [Sat, 2 Jan 2016 22:59:56 +0000 (14:59 -0800)]
menubar: prefer early return
Cosimo Cecchi [Fri, 1 Jan 2016 23:23:27 +0000 (15:23 -0800)]
menubar: port to use a gadget
Cosimo Cecchi [Fri, 1 Jan 2016 23:19:21 +0000 (15:19 -0800)]
menubar: use gtk_container_class_handle_border_width()
Cosimo Cecchi [Wed, 30 Dec 2015 19:07:26 +0000 (11:07 -0800)]
HighContrast: remove unused selector
There's no header-bar-separator style class.
Cosimo Cecchi [Wed, 30 Dec 2015 19:06:46 +0000 (11:06 -0800)]
Adwaita: remove unused selector
There's no header-bar-separator style class.
Cosimo Cecchi [Wed, 30 Dec 2015 18:59:56 +0000 (10:59 -0800)]
HighContrast: update for separators deprecations
HighContrast still has a long way to go, but let's get at least
separators working again.
Cosimo Cecchi [Wed, 30 Dec 2015 18:54:14 +0000 (10:54 -0800)]
HighContrast: reparse theme
For some reason, this got accidentally changed in a previous commit.
This is just the output of running parse-sass.sh again.
Cosimo Cecchi [Wed, 30 Dec 2015 18:53:27 +0000 (10:53 -0800)]
win32: remove ineffective selector
That style property is deprecated, but the combobox does not have a
separator anymore.
Cosimo Cecchi [Wed, 30 Dec 2015 18:51:14 +0000 (10:51 -0800)]
widget: deprecate separator style properties
They're not used in GTK anymore. Also remove them from the default
theme.